package com.webservice.xmloper.commandAckResult;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import com.thoughtworks.xstream.XStream;

public class CommandBakResultOper {
	
	/**
	 * 解析imsi通过webservice方法调用idc_commandbak方法返回的
	 * 指令执行结果xml 
	 */
	public static CommandAckBackResult parseCommandBakResult(String xmlString){
		XStream xs = new XStream();
		xs.processAnnotations(CommandAckBackResult.class);
		InputStream myIn=new ByteArrayInputStream(xmlString.getBytes());
		return (CommandAckBackResult) xs.fromXML(myIn);
	}
}
